#ifndef SD_CARD_H_
#define SD_CARD_H_

class SD_Card
{
    public:
    bool read_data( char * buf, const int& length );
    bool write_data( const char * from, char * to, const int& length );
    
    private:
    typedef enum
    {
        N_STATE
    }   STATE;
    
    void clock_high( );
    void clock_low( );
    void write_data_into_sd_card( const unsigned char& in );
    void write_command_into_sd_card( const unsigned char& command );
    unsigned char read_data_from_sd_card( );

    STATE current_state;
};

#endif /*SD_CARD_H_*/
